<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header(); ?>
        
<!--=S 首页中间部分=-->
<div id="wrapper" class="bg_wf">
	<div class="inner">
        <?php the_post() ?>
        <?php if (( get_post_meta($post->ID, 'name_interaction', true) ) || ( get_post_meta($post->ID, 'name_visual', true) ) || ( get_post_meta($post->ID, 'name_rebuilder', true) ) || ( get_post_meta($post->ID, 'download_interaction', true) ) || ( get_post_meta($post->ID, 'download_visual', true) )) { ?>
		    <div class="main single"><!--右侧没有信息时需要加载“no_aside”类-->
        <?php }else{ ?>
             <div class="main single no_aside"><!--右侧没有信息时需要加载“no_aside”类-->
        <?php } ?>
			<!--==S 左侧主要内容==-->
			<section>
				<article>
					<div class="tit_single">
						<h1><?php the_title() ?></h1>
						<p>时间：<time><?php the_time('Y-m-d'); ?></time> <span>分类：<?php the_category(', '); ?></span> <span>作者：<?php the_author(); ?></span><?php edit_post_link('编辑');  ?></p>
					</div>
					<?php the_content() ?>
                </article>
			</section>
			<!--==E 左侧主要内容==-->
            <?php if (( get_post_meta($post->ID, 'name_interaction', true) ) || ( get_post_meta($post->ID, 'name_visual', true) ) || ( get_post_meta($post->ID, 'name_rebuilder', true) ) || ( get_post_meta($post->ID, 'download_interaction', true) ) || ( get_post_meta($post->ID, 'download_visual', true) )) { get_sidebar();} ?>
		</div>
	</div>
</div>
<!--=E 首页中间部分=-->

<?php include( TEMPLATEPATH . '/menu.php' ); ?>
<?php get_footer() ?>